#include<stdio.h>
#include<string.h>

int isLittleEndian()
{
    union
    {
        int a;
        char b[4];
    }test = {0};
    
    test.a = 1;
    return test.b[0];
}

int main()
{
    printf("LittleEndian is %d\n",isLittleEndian());
    return 0;
}